home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
cpphtp2
/
cpphtp2.jar
/
appen_c.gml
< prev
next >
Wrap
Text File
|
1998-03-03
|
44KB
|
1,239 lines
<html>
<chapter>
<section type=Popup name=Terminology title="Terminology">
<page>
<font size=14>
B<br>
base 2 number system
<a href="%s1p1"><img src=iicons/bullbib.gif></a>
<br>
base 8 number system
<a href="%s1p1"><img src=iicons/bullbib.gif></a>
<br>
base 10 number system
<a href="%s1p0"><img src=iicons/bullbib.gif></a>
<br>
base 12 number system
<a href=""><img src=iicons/bullbib.gif></a>
<br>
base 16 number system
<a href="%s1p2"><img src=iicons/bullbib.gif></a>
<br>
binary number system
<a href="%s1p1"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p6"><img src=iicons/bullbib.gif></a>
<br>
bitwise complement
operator (<b>~</b>)
<a href="%s6p1"><img src=iicons/bullbib.gif></a>
<br>
D<br>
</font>
</page>
<page>
<font size=14>
decimal number system
<a href="%s1p0"><img src=iicons/bullbib.gif></a>
<br>
digit
<a href="%s1p0"><img src=iicons/bullbib.gif></a>
<br>
H<br>
hexadecimal number
system
<a href="%s1p1"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p3"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p4"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p4"><img src=iicons/bullbib.gif></a>
<a href="%s2p0"><img src=iicons/bullbib.gif></a>
<br>
N<br>
negative number
<a href="%s6p0"><img src=iicons/bullbib.gif></a>
<br>
O<br>
octal number system
<a href="%s1p1"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p5"><img src=iicons/bullbib.gif></a>
<a href="%s2p0"><img src=iicons/bullbib.gif></a>
<br>
one's complement
<a href="%s6p1"><img src=iicons/bullbib.gif></a>
<br>
P<br>
</font>
</page>
<page>
<font size=14>
positional notation
<a href="%s1p3"><img src=iicons/bullbib.gif></a>
<a href="%s5p0"><img src=iicons/bullbib.gif></a>
<br>
positional value
<a href="%s1p3"><img src=iicons/bullbib.gif></a>
<a href="%s4p0"><img src=iicons/bullbib.gif></a>
<a href="%s5p0"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p10"><img src=iicons/bullbib.gif></a>
<br>
S<br>
symbol value
<a href="%s1p3"><img src=iicons/bullbib.gif></a>
<a href="^Illustration::c:s0p10"><img src=iicons/bullbib.gif></a>
<br>
T<br>
two's complement
notation
<a href="%s6p0"><img src=iicons/bullbib.gif></a>
<br>
<br>
</font>
</page>
</section>
<section type=Popup name=Quotes title="Quotes">
<page>
<i>Here are only numbers
ratified.</i> <br>
William Shakespeare<br>
<br>
</page>
<page>
<i>Nature has some sort of
arithmetic-geometrical
coordinate system,
because nature has all
kinds of models. What we
experience of nature is in
models, and all of
nature's models are so
beautiful.<p>
It struck me that nature's
</i><br>
</page>
<page>
<i>system must be a real
beauty, because in
chemistry we find that the
associations are always
in beautiful whole
numbers--there are no
fractions.</i> <br>
Richard Buckminster
Fuller<br>
<br>
</page>
</section>
<section type=Popup name=Illustration title="Illustrations">
<page>
<a href="^Illustration::c:s0p3">Fig. C.1</a> Digits of the binary, octal, decimal, and hexadecimal number systems.<br>
<a href="^Illustration::c:s0p2">Fig. C.2</a> Comparison of the binary, octal, decimal, and hexadecimal number systems.<br>
<a href="^Illustration::c:s0p1">Fig. C.3</a> Positional values in the decimal number system.<br>
<a href="^Illustration::c:s0p6">Fig. C.4</a> Positional values in the binary number system.<br>
<a href="^Illustration::c:s0p5">Fig. C.5</a> Positional values in the octal number system.<br>
<a href="^Illustration::c:s0p4">Fig. C.6</a> Positional values in the hexadecimal number system.<br>
<a href="^Illustration::c:s0p7">Fig. C.7</a> Decimal, binary, octal, and hexadecimal equivalents.<br>
<a href="^Illustration::c:s0p8">Fig. C.8</a> Converting a binary number to decimal.<br>
<a href="^Illustration::c:s0p10">Fig. C.9</a> Converting an octal number to decimal.<br>
<a href="^Illustration::c:s0p9">Fig. C.10</a> Converting a hexadecimal number to decimal.<br>
<br>
</page>
<page>
<font size=18>Figure C.3 - Positional values in the decimal number system.</font><br>
<img src="graphics/app_c/fig_c003.gif" ><br>
</page>
<page>
<font size=18>Figure C.2 - Comparison of the binary, octal, decimal, and hexadecimal number
systems.</font><br>
<img src="graphics/app_c/fig_c002.gif" ><br>
</page>
<page>
<font size=18>Figure C.1 - Digits of the binary, octal, decimal, and hexadecimal number systems.</font><br>
<img src="graphics/app_c/fig_c001.gif" ><br>
</page>
<page>
<font size=18>Figure C.6 - Positional values in the hexadecimal number system.<img src="graphics/app_c/fig_c006.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.5 - Positional values in the octal number system.<img src="graphics/app_c/fig_c005.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.4 - Positional values in the binary number system.<img src="graphics/app_c/fig_c004.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.7 - Decimal, binary, octal, and hexadecimal equivalents.<img src="graphics/app_c/fig_c007.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.8 - Converting a binary number to decimal.<img src="graphics/app_c/fig_c008.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.10 - Converting a hexadecimal number to decimal.<img src="graphics/app_c/fig_c010.gif" ></font><br>
</page>
<page>
<font size=18>Figure C.9 - Converting an octal number to decimal.<img src="graphics/app_c/fig_c009.gif" ></font><br>
</page>
</section>
<section type=Popup name=Answers title="Answers">
<page pagename="Answer C.1">
<b>Answer C.1</b><br>
<tt><b>10</b></tt>, <tt><b>2</b></tt>, <tt><b>8</b></tt>, <tt><b>16</b></tt>.<br>
<foreign name="exercises" url="^Exercises::c:s0p0">
<br>
</page>
<page pagename="Answer C.2">
<b>Answer C.2</b><br>
Fewer.<br>
<foreign name="exercises" url="^Exercises::c:s0p1">
<br>
</page>
<page pagename="Answer C.3">
<b>Answer C.3</b><br>
False.<br>
<foreign name="exercises" url="^Exercises::c:s0p2">
<br>
</page>
<page pagename="Answer C.4">
<b>Answer C.4</b><br>
Hexadecimal.<br>
<foreign name="exercises" url="^Exercises::c:s0p3">
<br>
</page>
<page pagename="Answer C.5">
<b>Answer C.5</b><br>
False. The highest digit in any base is one less than the base.<br>
<foreign name="exercises" url="^Exercises::c:s0p4">
<br>
</page>
<page pagename="Answer C.6">
<b>Answer C.6</b><br>
False. The lowest digit in any base is zero.<br>
<foreign name="exercises" url="^Exercises::c:s0p5">
<br>
</page>
<page pagename="Answer C.7">
<b>Answer C.7</b><br>
<b>1</b> (the base raised to the zero power).<br>
<foreign name="exercises" url="^Exercises::c:s0p6">
<br>
</page>
<page pagename="Answer C.8">
<b>Answer C.8</b><br>
The base of the number system.<br>
<foreign name="exercises" url="^Exercises::c:s0p7">
<br>
</page>
<page pagename="Answer C.9">
<b>Answer C.9</b><br>
Fill in the missing values in this chart of positional values for the rightmost four
positions in each of the indicated number systems:<br>
<font size=2><br></font><font size=11><pre>
decimal 1000 100 10 1<p>
hexadecimal 4096 256 16 1<p>
binary 8 4 2 1<p>
octal 512 64 8 1<p>
</pre></font>
<foreign name="exercises" url="^Exercises::c:s0p8">
<br>
</page>
<page pagename="Answer C.10">
<b>Answer C.10</b><br>
Octal <b>6530</b>; Hexadecimal <b>D58</b>.<br>
<foreign name="exercises" url="^Exercises::c:s0p9">
<br>
</page>
<page pagename="Answer C.11">
<b>Answer C.11</b><br>
Binary <b>1111<tt> 1010 1100 1110</tt></b>.<br>
<foreign name="exercises" url="^Exercises::c:s0p10">
<br>
</page>
<page pagename="Answer C.12">
<b>Answer C.12</b><br>
Binary <b>111<tt> 011 001 110</tt></b>.<br>
<foreign name="exercises" url="^Exercises::c:s0p11">
<br>
</page>
<page pagename="Answer C.13">
<b>Answer C.13</b><br>
Binary <b>0<tt> 100 111 111 101 100</tt></b>;<tt><b> Octal 47754</b><